package com.bootdo.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.blog.dao.WineMapper;
import com.bootdo.blog.domain.WineDO;
import com.bootdo.blog.service.WineService;



@Service
public class WineServiceImpl implements WineService {
	@Autowired
	private WineMapper wineMapper;
	
	@Override
	public WineDO get(Integer wineId){
		return wineMapper.get(wineId);
	}
	
	@Override
	public List<WineDO> list(Map<String, Object> map){
		return wineMapper.list(map);
	}

	@Override
	public List<WineDO> list2(WineDO wineDO) {
		return wineMapper.list2(wineDO);
	}

	@Override
	public int count(Map<String, Object> map){
		return wineMapper.count(map);
	}

	@Override
	public int count2(int status) {
		return wineMapper.count2(status);
	}

	@Override
	public int save(WineDO wine){
		return wineMapper.save(wine);
	}
	
	@Override
	public int update(WineDO wine){
		return wineMapper.update(wine);
	}
	
	@Override
	public int remove(Integer wineId){
		return wineMapper.remove(wineId);
	}
	
	@Override
	public int batchRemove(Integer[] wineIds){
		return wineMapper.batchRemove(wineIds);
	}
	
}
